import request from '@/utils/request.js'

//获取所有专业信息
export const getAllMajorInfo = (queryParams)=>{
    return request.get('/teach-system/admin/getAllMajor',{params:queryParams});
}

//添加专业信息
export const addllMajorInfo = (addMajor)=>{
    return request.post('/teach-system/admin/addMajor',addMajor);
}

//删除专业信息
export const deleteMajorInfo = (id)=>{
    return request.post('/teach-system/admin/deleteMajorById/'+id);
}